package cn.shop.merchant.model.media;

import cn.shop.merchant.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * @author : 李一涵
 * @date : Created in 2021-11-3 17:39
 * @description : 公告类
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("merchant_banner")
public class Banner extends BaseEntity {

    @NotBlank(message = "标题不能为空")
    private String title;
    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不能为空")
    private String picture;
    /**
     * 外链地址
     */
    private String url;
}
